import {
  BwComTypeEnum,
  BwVueComNameEnum,
  BwAntComNameEnum,
  BwHtmlComNameEnum,
  BwVanComNameEnum,
  BwVxeComNameEnum,
  BwBwComNameEnum,
} from '@bitwit/base-com-render'

import { BwComGroupModel } from '../model'

export const baseComList: Array<BwComGroupModel> = [
  {
    key: 'html',
    icon: '',
    group: '原生标签',
    coms: [
      {
        comKey: BwHtmlComNameEnum.div,
        comName: 'div',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.html,
      },
      {
        comKey: BwHtmlComNameEnum.span,
        comName: 'span',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.html,
      },
      {
        comKey: BwHtmlComNameEnum.iframe,
        comName: 'iframe',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.html,
      },
      {
        comKey: BwHtmlComNameEnum.a,
        comName: 'a',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.html,
      },
    ],
  },
  {
    key: 'vue',
    icon: '',
    group: 'vue 内置控件',
    coms: [
      {
        comKey: BwVueComNameEnum.slot,
        comName: 'slot 插槽',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vue,
      },
      {
        comKey: BwVueComNameEnum.component,
        comName: '元组件',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vue,
      },
    ],
  },
  {
    key: 'ant',
    icon: '',
    group: '基础控件',
    coms: [
      {
        comKey: BwBwComNameEnum.Icon,
        comName: '图标',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AImage,
        comName: '图片',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AInput,
        comName: '输入框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AInputSearch,
        comName: '搜索框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATextarea,
        comName: '文本域',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AInputNumber,
        comName: '数字',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AAutoComplete,
        comName: '联想框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ARadioGroup,
        comName: '单选框组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ARadio,
        comName: '单选框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ACheckboxGroup,
        comName: '复选框组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ACheckbox,
        comName: '复选框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ASelect,
        comName: '下拉框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATreeSelect,
        comName: '树下拉框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ADatePicker,
        comName: '日期框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ARangePicker,
        comName: '日期区间',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ARate,
        comName: '评分',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ASwitch,
        comName: '开关',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATree,
        comName: '树形控件',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATag,
        comName: '标签',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AButton,
        comName: '按钮',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.APagination,
        comName: '分页',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATooltip,
        comName: '文字提示',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.APopover,
        comName: '气泡卡片',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATimePicker,
        comName: '时间选择',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ACascader,
        comName: '级联选择',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATabs,
        comName: '标签页',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ATabPane,
        comName: '标签项',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AMenu,
        comName: '菜单',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AUpload,
        comName: '文件上传',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
    ],
  },
  {
    key: 'ant-container',
    icon: '',
    group: '容器控件',
    coms: [
      {
        comKey: BwAntComNameEnum.AForm,
        comName: '表单',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AFormItem,
        comName: '表单项',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ARow,
        comName: '栅格行',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.ACol,
        comName: '栅格列',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
      {
        comKey: BwAntComNameEnum.AModal,
        comName: '弹窗',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.ant,
      },
    ],
  },

  {
    key: 'vant',
    icon: '',
    group: '基础控件',
    coms: [
      {
        comKey: BwVanComNameEnum.VanField,
        comName: '输入框',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      // {
      //   comKey: BwVanComNameEnum.ASearch,
      //   comName: '搜索框',
      //   icon: '',
      //   isDrag: true,
      //   appId: null,
      //   appCode: null,
      //   type: BwComTypeEnum.vant,
      // },
      // {
      //   comKey: BwVanComNameEnum.van,
      //   comName: '联想框',
      //   icon: '',
      //   isDrag: true,
      //   appId: null,
      //   appCode: null,
      //   type: BwComTypeEnum.vant,
      // },
      {
        comKey: BwVanComNameEnum.VanRadioGroup,
        comName: '单选组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanRadio,
        comName: '单选项',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCheckboxGroup,
        comName: '复选组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCheckbox,
        comName: '复选项',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanPicker,
        comName: '选择器',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanPickerGroup,
        comName: '选择器组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanDatePicker,
        comName: '日期选择',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      // {
      //   comKey: BwVanComNameEnum.,
      //   comName: '日期区间',
      //   icon: '',
      //   isDrag: true,
      //   appId: null,
      //   appCode: null,
      //   type: BwComTypeEnum.vant,
      // },
      {
        comKey: BwVanComNameEnum.VanRate,
        comName: '评分',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanSwitch,
        comName: '开关',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCascader,
        comName: '级联选择',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanTimePicker,
        comName: '时间选择',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
    ],
  },
  {
    key: 'vant-container',
    icon: '',
    group: '容器控件',
    coms: [
      {
        comKey: BwVanComNameEnum.VanForm,
        comName: '表单',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanField,
        comName: '表单项',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanRow,
        comName: '栅格行',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCol,
        comName: '栅格列',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanPopup,
        comName: '弹窗',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCellGroup,
        comName: '单元格组',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
      {
        comKey: BwVanComNameEnum.VanCell,
        comName: '单元格',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vant,
      },
    ],
  },
  {
    key: 'vxe',
    icon: '',
    group: '表格组件',
    coms: [
      {
        comKey: BwVxeComNameEnum.VxeTable,
        comName: '表格',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vxe,
      },
      {
        comKey: BwVxeComNameEnum.VxeColgroup,
        comName: '表格头',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vxe,
      },
      {
        comKey: BwVxeComNameEnum.VxeColumn,
        comName: '表格列',
        icon: '',
        isDrag: true,
        appId: null,
        appCode: null,
        type: BwComTypeEnum.vxe,
      },
    ],
  },
]
